home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / ue311gcc.zip / MAKEUNIX < prev    next >
Text File  |  1992-12-29  |  2KB  |  98 lines

  1. #    Unix makefile for
  2. #        MicroEMACS 3.11
  3. #        (C)Copyright 1990 by Daniel Lawrence
  4. #        all rights reserved
  5. #
  6. #       Made into a real Unix makefile by Bob Friesenhahn, thefuzz on BIX
  7.  
  8. # Yuck ...
  9. SHELL=/bin/sh
  10.  
  11. # Install directory.  Don't include a last '/' on the directory name
  12. INSTDIR= /usr/local/uemacs
  13. INSTALL= cp
  14.  
  15. # Compiler flags and defines.  Don't forget to edit estruct.h!
  16. CFLAGS=    -O
  17.  
  18. # Lint
  19. LINT = lint
  20. LARGS = -uvx
  21.  
  22. .SUFFIXES : .o .c .ln
  23.  
  24. .c.ln :
  25.     $(LINT) -c $(LARGS) $(CFLAGS) $<
  26.  
  27. # Header files ...
  28. HFILES = estruct.h edef.h efunc.h epath.h ebind.h eproto.h
  29.  
  30. # Object files ...
  31. F1 = basic.o bind.o buffer.o
  32. F2 = char.o crypt.o display.o dolock.o
  33. F3 = eval.o exec.o file.o
  34. F4 = fileio.o unix.o input.o
  35. F5 = isearch.o line.o lock.o
  36. F6 = main.o mouse.o screen.o
  37. F7 = random.o region.o search.o
  38. F8 = tags.o window.o word.o
  39.  
  40. # Equivalent lint files ...
  41. LF1 = basic.ln bind.ln buffer.ln
  42. LF2 = char.ln crypt.ln display.ln dolock.ln
  43. LF3 = eval.ln exec.ln file.ln
  44. LF4 = fileio.ln unix.ln input.ln
  45. LF5 = isearch.ln line.ln lock.ln
  46. LF6 = main.ln mouse.ln screen.ln
  47. LF7 = random.ln region.ln search.ln
  48. LF8 = tags.ln window.ln word.ln
  49.  
  50.  
  51. # product list
  52.  
  53. all:    emacs
  54.  
  55. OFILES = $(F1) $(F2) $(F3) $(F4) $(F5) $(F6) $(F7) $(F8)
  56. LFILES = $(LF1) $(LF2) $(LF3) $(LF4) $(LF5) $(LF6) $(LF7) $(LF8)
  57.  
  58. emacs:    $(OFILES)
  59.     $(CC) $(CFLAGS) $(OFILES) -lcurses -lc -o emacs
  60.  
  61. lint:    $(LFILES)
  62.     $(LINT) $(LARGS) $(LFILES) -lcurses -lc
  63.  
  64. # Dependencies ...
  65. basic.o basic.ln: basic.c $(HFILES)
  66. bind.o bind.ln: bind.c $(HFILES)
  67. buffer.o buffer.ln: buffer.c $(HFILES)
  68. char.o char.ln: char.c $(HFILES)
  69. crypt.o crypt.ln: crypt.c $(HFILES)
  70. cmdfix.o cmdfix.ln: cmdfix.c $(HFILES)
  71. display.o display.ln: display.c $(HFILES)
  72. dolock.o dolock.ln: dolock.c $(HFILES)
  73. eval.o eval.ln: eval.c $(HFILES) evar.h
  74. exec.o exec.ln: exec.c $(HFILES)
  75. file.o file.ln: file.c $(HFILES)
  76. fileio.o fileio.ln: fileio.c $(HFILES)
  77. input.o input.ln: input.c $(HFILES)
  78. isearch.o isearch.ln: isearch.c $(HFILES)
  79. line.o line.ln: line.c $(HFILES)
  80. lock.o lock.ln: lock.c $(HFILES)
  81. main.o main.ln: main.c $(HFILES)
  82. mouse.o mouse.ln: mouse.c $(HFILES)
  83. unix.o unix.ln: unix.c $(HFILES)
  84. random.o random.ln: random.c $(HFILES)
  85. region.o region.ln: region.c $(HFILES)
  86. screen.o screen.ln: screen.c $(HFILES)
  87. search.o search.ln: search.c $(HFILES)
  88. tags.o tags.ln: tags.c $(HFILES)
  89. window.o window.ln: window.c $(HFILES)
  90. word.o word.ln: word.c $(HFILES)
  91.  
  92. clean:
  93.     rm -f *.o emacs core *.ln
  94.  
  95. install:
  96.     strip emacs
  97.     cp emacs $(INSTDIR)/emacs
  98.